<template>
	<view> 
		<view class="status-bar-height" :style=" height >0 ?  'height:'+height + 'px' : ''"></view>
	</view>
	
</template>

<script>
	export default {
		name: "tab-status-height",
		data() {
			return {
				height: 0,
			}
		},
		created() {
			// console.log(uni.getSystemInfoSync());
			var systemInfo = uni.getSystemInfoSync();
			this.height = systemInfo.safeAreaInsets.top;
		},
		computed: {},
		methods: {}
	}
</script>

<style scoped>
	.status-bar-height{
		height: var(--status-bar-height);
	}
</style>
